package com.jsb.laundry.service.impl;

import com.jsb.laundry.dao.OfficialAccountDao;
import com.jsb.laundry.service.OfficialAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OfficialAccountServiceImpl implements OfficialAccountService {
    @Autowired
    private OfficialAccountDao officialAccountDao;

    @Override
    public int addAccount(String unionId, String openId) {
        return officialAccountDao.addAccount(unionId, openId);
    }

    @Override
    public int updAccount(String openId, String del) {
        return officialAccountDao.updAccount(openId, del);
    }

    @Override
    public int findByOpenID(String openId) {
        return officialAccountDao.findByOpenID(openId);
    }

    @Override
    public int findByDel(String openId) {
        return officialAccountDao.findByDel(openId);
    }

    @Override
    public int updateUnionId(String unionId, String openId) {
        return officialAccountDao.updateUnionId(unionId,openId);
    }
}
